﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleKit.FILEIO
{
    public class FilterFileContent
    {
        // todo: read one line from file
        public static void filter()
        {
            // Read the file and display it line by line.
            string line;
            string output = string.Empty;
            int counter = 0;
            MyFile myFile = new MyFile();
            System.IO.StreamReader file =
               new System.IO.StreamReader(@"D:\Firebird\Development\Pacom\Site Manager\SiteManager\SiteManagerTimeSchedule.Designer.cs");
            while ((line = file.ReadLine()) != null)
            {
                if (line.Contains("+="))
                {
                    output += line +"\r\n";
                }
                counter++;
            }

            file.Close();
            myFile.SaveStringToFile(output, @"D:\workspace\designer.txt");
            // Suspend the screen.
        }
        public static void MyMain(string[] args)
        {
            filter();
        }
    }
}
